/**
 * Copyright &copy; 2012-2016 <a href="https://istep.lczyfz.com">Istep</a> All rights reserved.
 */
package com.lczyfz.istep.modules.resource.service;

import java.util.List;

import com.lczyfz.istep.modules.resource.entity.ResourceCourse;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.lczyfz.istep.common.persistence.Page;
import com.lczyfz.istep.common.service.CrudService;
import com.lczyfz.istep.modules.resource.entity.ResourceRepertory;
import com.lczyfz.istep.modules.resource.dao.ResourceRepertoryDao;

/**
 * 题库管理Service
 * @author dh
 * @version 2017-01-15
 */
@Service
@Transactional(readOnly = true)
public class ResourceRepertoryService extends CrudService<ResourceRepertoryDao, ResourceRepertory> {

	public ResourceRepertory get(String id) {
		return super.get(id);
	}
	
	public List<ResourceRepertory> findList(ResourceRepertory resourceRepertory) {
		return super.findList(resourceRepertory);
	}
	
	public Page<ResourceRepertory> findPage(Page<ResourceRepertory> page, ResourceRepertory resourceRepertory) {
		return super.findPage(page, resourceRepertory);
	}
	public ResourceRepertory findRepertoryByRepertoryName(ResourceRepertory resourceRepertory) {
		return dao.findRepertoryByRepertoryName(resourceRepertory);
	}


	@Transactional(readOnly = false)
	public void save(ResourceRepertory resourceRepertory) {
		super.save(resourceRepertory);
	}
	
	@Transactional(readOnly = false)
	public void delete(ResourceRepertory resourceRepertory) {
		super.delete(resourceRepertory);
	}
	
}